<!DOCTYPE html>
<html lang="">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  <title>
    <%= htmlWebpackPlugin.options.title %>
  </title>

  <style>
    #app {
      position: relative;
      width: 42px;
      height: 42px;
      animation: app 5s infinite linear;
    }

    #app span {
      width: 20px;
      height: 20px;
      position: absolute;
      background: red;
      display: block;
      animation: app_span 1s infinite linear;
    }

    #app span:nth-child(1) {
      background: #2ecc71;
    }

    #app span:nth-child(2) {
      left: 22px;
      background: #9b59b6;
      animation-delay: .2s;
    }

    #app span:nth-child(3) {
      top: 22px;
      background: #3498db;
      animation-delay: .4s;
    }

    #app span:nth-child(4) {
      top: 22px;
      left: 22px;
      background: #f1c40f;
      animation-delay: .6s;
    }

    @keyframes app {
      from {
        -ms-transform: rotate(0deg);
      }

      to {
        -ms-transform: rotate(360deg);
      }
    }

    @keyframes app_span {
      0% {
        transform: scale(1);
      }

      50% {
        transform: scale(0.5);
      }

      100% {
        transform: scale(1);
      }
    }
  </style>
  <script>
    // window.addEventListener("popstate", function (e) {
    //   window.location.reload();//跳转后执行的方法
    // }, false);
    // window.addEventListener(
    //   "popstate",
    //   function (e) {
    //     sessionStorage.setItem("SET_CALLBACK", "1");
    //     // window.location.reload(); //跳转后执行的方法
    //   },
    //   false
    // );
  </script>
</head>

<body>
  <noscript>
    <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
        Please enable it to continue.</strong>
  </noscript>
  <div id="app">
    <span></span>
    <span></span>
    <span></span>
    <span></span>
  </div>
  <!-- built files will be auto injected -->
</body>

</html>